package org.example.springmessage.service;


import org.example.springmessage.domain.Message;

import java.util.List;

public interface MessageService {
    List<Message> getAllMessages();


    List<Message> getByUserId(Integer userid);

    boolean delete(Integer id);

    boolean addMessage(Message message);

    List<Message> getMessageByTag(String tag);
}
